<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>layui</title>
    <link rel="stylesheet" href="./layui/css/layui.css"> </head>
    <script src="./layui/layui.js"></script>
<body>
    <script>
        var device = layui.device();
        alert(device["os"]);

    </script> </body>
    
</html>